package com.ruoyi.leaveStudent.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.leaveManage.bo.LeaveManageEditBo;
import com.ruoyi.leaveManage.bo.LeaveManageQueryBo;
import com.ruoyi.leaveManage.domain.LeaveManage;
import com.ruoyi.leaveManage.vo.LeaveUserVo;
import com.ruoyi.leaveManage.vo.LeaveVo;
import com.ruoyi.leaveStudent.bo.LeaveAddBo;
import io.swagger.models.auth.In;

import java.util.Collection;
import java.util.List;

/**
 * 请假信息Service接口
 *
 * @author ruoyi
 * @date 2021-04-26
 */
public interface ILeaveService extends IService<LeaveManage> {


	/**
	 * 根据新增业务对象插入请假信息
	 * @param bo 请假信息新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(LeaveAddBo bo);


	/**
	 * 根据编辑业务对象修改请假信息
	 * @param bo 请假信息编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(LeaveManageEditBo bo);


	/**
	 * 撤销假条
	 * @param leaveId
	 * @return
	 */
	Boolean updateByLeaveRevoke(Integer leaveId);

	/**
	 * 注销假条
	 * @param leaveUserId
	 * @return
	 */
	Boolean updateByCancellationStatus(Integer leaveUserId);
}
